package com.usian.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Data
public class Commodity{
    @Id
    private Integer pid;

    private String pname;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createdTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date submitedTime;

    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date publishTime;

    private String reason;

    private int putaway;

    private Integer price;

    private Integer enable;
}
